//
// Created by 25137 on 2024/2/6.
//

#ifndef BOOST_ASIO_MWIDGET_H
#define BOOST_ASIO_MWIDGET_H

#include <QWidget>
#include "mserialportq.h"
#include "lib/mtcpserver.h"
#include <QSharedPointer>
QT_BEGIN_NAMESPACE
namespace Ui { class Mwidget; }
QT_END_NAMESPACE

class Mwidget : public QWidget {
Q_OBJECT

public:
    explicit Mwidget(QWidget *parent = nullptr);
    ~Mwidget() override;
   static void callback(const char* data,const int& len);
   void appShow(std::string data);
private:
    Ui::Mwidget *ui;
    shared_ptr<MSerialPortQ> serialPort;
};


#endif //BOOST_ASIO_MWIDGET_H
